<%@ page language="java" contentType="text/html; charset=UTF-8"
	pageEncoding="UTF-8"%>
	<script type="text/javascript" src="jquery-1.8.2.js"></script>
<script type="text/javascript">
		$(document).ready(function() {
			if(${sessionScope.mvo == null }){
				alert("로그인하고 오세요");
				location.href="wedding.do?command=loginForm";
			}
			else{
			$("#update").click(function() {
				$("#Update_form").submit();
			}) // update 버튼
			}
		}); // document 
</script>

<table width="700" align="center" style="border-style:dotted; border-color:gray;">
	<tr>
		<td><form action="qna.do" method="post" name="Update_form" id="Update_form">
	<input type="hidden" id="command" name="command" value="qnaUpdate">
	<%--     <input type="hidden" id="id" name="id" value="${sessionScope.mvo.id }"> --%>
	<table>
		<tr>
			<td><font size="2"><b>번호 : </b></font><input type="text" size="5" id="qnaNo" name="qnaNo" value="${param.qnaNo }" readonly="readonly"></td>		
			
		</tr>
		<tr>
			<td><font size="2"><b>작성자 : ${requestScope.qnavo.member.id }</b></font></td>
			
		</tr>
		<tr>
			<td><font size="2"><b>제목 : </b></font><input type="text" id="qnaTitle" name="qnaTitle"
				maxlength="100" size="30" value="${requestScope.qnavo.qnaTitle }"></td>
		</tr>
		
		<tr>
			<td><textarea cols="100" rows="10" id="qnaContent"
					name="qnaContent">${requestScope.qnavo.qnaContent }</textarea></td>
		</tr>
	</table></td>
	</tr>
</table><br>


	
<span style="margin-left: 400px;"><img src="${initParam.root }/img/confirm_button.gif" id="update"></span>

</form>